<!-- Seednia home -->

	<form class="form-horizontal" id="FormProfile" name="FormProfile" method="post" action="<?php echo controller_base_path($requestContext); ?>/Profile/<?php echo $profile->sid; ?>/form" enctype="multipart/form-data"   >
		<input type="hidden" id="sid" name="sid" value="<?php echo $profile->sid; ?>" />
		<input type="hidden" id="uuid" name="uuid" value="<?php echo $profile->uuid; ?>" />
		<fieldset>
			<legend>Your Profile</legend>
			<div class="control-group">
				<label class="control-label" for="firstName">First Name</label>
				<div class="controls">
					<input type="text" id="firstName" name="firstName" 
						   value="<?php echo Util_Data::getValueOf($profile, 'firstName'); ?>" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="lastName">Last Name</label>
				<div class="controls">
					<input type="text" id="lastName" name="lastName" 
						   value="<?php echo Util_Data::getValueOf($profile, 'lastName'); ?>" />
				</div>
			</div>
			
			<div class="control-group">
				<label class="control-label" for="profileImage">Profile picture</label>
				<div class="controls">
					<input type="file" id="profileImage" name="profileImage" 
						   value="" />
				</div>
			</div>
			
			<div class="control-group">
				<label class="control-label" for="currentLocation">Current Location</label>
				<div class="controls">
					<input type="text" id="currentLocation" name="currentLocation" 
						   value="<?php echo Util_Data::getValueOf($profile, 'currentLocation'); ?>" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="hometown">Hometown</label>
				<div class="controls">
					<input type="text" id="hometown" name="hometown" 
						   value="<?php echo Util_Data::getValueOf($profile, 'hometown'); ?>" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="gender">Gender</label>
				<div class="controls">
					<?php echo Form::select('gender', array("m"=>"Male", "f"=>"Female", "u"=>"Unspecified"), Util_Data::getValueOf($profile, 'gender')); ?>
				</div>
			</div>
			
			<div class="control-group">
				<label class="control-label" for="highlight">Highlight</label>
				<div class="controls">
					<textarea id="goals" name="highlight" class="span12"><?php echo Util_Data::getValueOf($profile, 'highlight'); ?></textarea>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="goals">Goals</label>
				<div class="controls">
					<textarea id="goals" name="goals" class="span12"><?php echo Util_Data::getValueOf($profile, 'goals'); ?></textarea>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="status">Status</label>
				<div class="controls">
					<?php echo Form::select('status', array("1"=>"Available", "0"=>"Not Available"), Util_Data::getValueOf($profile, 'status')); ?>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="timeCommitment">Time Commitment</label>
				<div class="controls">
					<?php echo Form::select('timeCommitment', array(3,5,6,9,10,12,15,18,20,25,30,35,40,50,60), Util_Data::getValueOf($profile, 'timeCommitment')); ?> hrs per week
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="languageTagNamesCsv">Languages</label>
				<div class="controls">
					<input type="text" id="languageTagNamesCsv" name="languageTagNamesCsv" class="tag"
						    value="<?php echo Util_Data::getValueOf($profile, 'languageTagNamesCsv'); ?>" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="skillTagNamesCsv">Skills</label>
				<div class="controls">
					<input type="text" id="skillTagNamesCsv" name="skillTagNamesCsv" class="tag"
						    value="<?php echo Util_Data::getValueOf($profile, 'skillTagNamesCsv'); ?>" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="interestTagNamesCsv">Interests</label>
				<div class="controls">
					<input type="text" id="interestTagNamesCsv" name="interestTagNamesCsv" class="tag"
						    value="<?php echo Util_Data::getValueOf($profile, 'interestTagNamesCsv'); ?>" />
				</div>
			</div>
			
			<div class="control-group">
				<label class="control-label" for="inlineCheckboxes">I want to </label>
				<div class="controls">
					<label class="checkbox inline">
						<input type="checkbox" name="wantTo_pursue" value="1" <?php echo Util_Data::hasBitFlagSet($profile, 'wantTo', 1) ? 'checked="checked"' :'' ; ?> />Pursue goal
					</label>
					<label class="checkbox inline">
						<input type="checkbox" name="wantTo_mentor" value="2" <?php echo Util_Data::hasBitFlagSet($profile, 'wantTo', 2) ? 'checked="checked"' :'' ; ?> />Mentor/Advise
					</label>
					<label class="checkbox inline">
						<input type="checkbox" name="wantTo_collaborate" value="4" <?php echo Util_Data::hasBitFlagSet($profile, 'wantTo', 4) ? 'checked="checked"' :'' ; ?> />Collaborate
					</label>
				</div>
			</div>

			<div class="control-group">
				<div class="controls">
					<button type="submit" class="btn">Update</button>
				</div>
			</div>

		</fieldset>
	</form>

<script type="text/javascript">
// FYI jQuery: multiple $(document).ready() is possible.
$(document).ready(function() {
	$(".tag").tagit({maxTags:25 });
});
</script>